import { createRouter, createWebHistory } from 'vue-router';
import IntroductionPage from '@/views/IntroductionPage.vue';
import SearchPage from '@/views/SearchPage.vue';
import LoginPage from '@/views/LoginPage.vue';
import CenterPage from '@/views/CenterPage.vue';
import CreatePage from '@/views/CreatePage.vue';
import GamePage from '@/views/GamePage.vue';
import HomePage from '@/views/HomePage.vue';
import ArticlePage from '@/views/ArticlePage.vue';
import NewsPage from '@/views/NewsPage.vue';
import TeachingPage from '@/views/TeachingPage.vue';
import ThoughtPage from '@/views/ThoughtPage.vue';

const routes = [
  {
    path: '/',
    name: 'IntroductionPage',
    component: IntroductionPage
  },
  {
    path: '/登录',
    name: 'LoginPage',
    component: LoginPage
  },
  {
    path: '/个人中心',
    alias: '/%E4%B8%AA%E4%BA%BA%E4%B8%AD%E5%BF%83',
    name: 'CenterPage',
    component: CenterPage
  },
  {
    path: '/创作',
    name: 'CreatePage',
    component: CreatePage
  },
  {
    path: '/体验页',
    name: 'GamePage',
    component: GamePage
  },
  {
    path: '/首页',
    alias: '/%E9%A6%96%E9%A1%B5',
    name: 'HomePage',
    component: HomePage
  },
  {
    path: '/搜索结果',
    name: 'SearchPage',
    component: SearchPage
  },
  {
    path: '/文章页',
    name: 'ArticlePage',
    component: ArticlePage
  },
  {
    path: '/每日一闻',
    name: 'NewsPage',
    component: NewsPage
  },
  {
    path: '/教学',
    name: 'TeachingPage',
    component: TeachingPage
  },
  {
    path: '/感悟',
    name: 'ThoughtPage',
    component: ThoughtPage
  },
  {
    path: '/直播',
    name: 'LivePage',
    component: () => import('@/views/LivePage.vue')
  }
  // 其他路由规则
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;
